const mongoose = require("mongoose");

// 创建结构
const schema = new mongoose.Schema({
    cinemasId: { type: "ObjectId", ref: "cinemas" },
    movieId: { type: "ObjectId", ref: "movies" },
    theaterId: { type: "ObjectId", ref: "theaters" },
    showTime: String,
    price: Number,
})

// 创建model
mongoose.model("schedules", schema, "schedules");
